#pragma once
#include "stdafx.h"

using namespace System;
using namespace System::Data;

namespace Librarian
{
	namespace Entities
	{
		public ref class BookEntity
		{

		private:
			String^ _BookNo;
			String^ _Category;
			String^ _Title;
			String^ _Press;
			int  _PublishYear;
			String^ _Author;
			Decimal _Price;
			int _Total;
			int _Stock;

		public:
			property String^ BookNo
			{
				String^ get()
				{
					return this->_BookNo;
				}
				void set(String^ value)
				{
					this->_BookNo = value;
				}
			}
			property String^ Category
			{
				String^ get()
				{
					return this->_Category ;
				}
				void set(String^ value)
				{
					this->_Category = value;
				}
			}
			property String^ Title
			{
				String^ get()
				{
					return this->_Title ;
				}
				void set(String^ value)
				{
					this->_Title = value;
				}
			}
			property String^ Press
			{
				String^ get()
				{
					return this->_Press ;
				}
				void set(String^ value)
				{
					this->_Press = value;
				}
			}
			property int PublishYear
			{
				int get()
				{
					return this->_PublishYear ;
				}
				void set(int value)
				{
					this->_PublishYear = value; 
				}
			}
			property String^ Author
			{
				String^ get()
				{
					return this->_Author ;
				}
				void set(String^ value)
				{
					this->_Author = value;
				}
			}
			property Decimal Price
			{
				Decimal get()
				{
					return this->_Price ;
				}
				void set(Decimal value)
				{
					this->_Price = value;
				}
			}
			property int Total
			{
				int get()
				{
					return this->_Total ;
				}
				void set(int value)
				{
					this->_Total = value;
				}
			}
			property int Stock
			{
				int get()
				{
					return this->_Stock ;
				}
				void set(int value)
				{
					this->_Stock = value;
				}
			}
			public:
				virtual String^ ToString() override
				{
					return this->_BookNo;
				}

		};




	}
}